package com.westdream.service.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.westdream.pojo.Message;
import com.westdream.service.MessageService;

public class MessageServiceImpl implements MessageService {
	
	public int count(String whereClause) {
		
		return 1;
	}

	public void delete(Integer id) {
		
	}

	public List<Message> queryList(String whereClause) {

		List<Message> list = new ArrayList<Message>();
		Message msg = new Message();
		msg.setMid(1);
		msg.setTitle("title");
		msg.setContent("content");
		msg.setAuthor("author");
		msg.setPostTime(new Date());
		list.add(msg);
		return list;
	}

	public List<Message> queryList() {
		return queryList(null);
	}

	public void save(Message msg) {
		
	}

	public Message select(Integer id) {
		return null;
	}


}
